package com.kitty.game.hunqiao.model;

import com.kitty.game.equip.model.EquipField;
import com.kitty.mina.annotation.ListField;
import com.kitty.game.hunqiao.model.HunQiaoAllProps;

import java.util.List;

/**
 *
 */
public class HunQiaoZhuRuEquipInfo {
    private byte pos1 ;//应该是个short
    private byte pos ;//魂窍的位置
    private byte num1=0 ;
    private byte size;


    @ListField(2)
    private List<EquipField> equipFields;
    @ListField(2)
    private List<HunQiaoField> hunQiaoFields;

    public byte getNum1() {
        return num1;
    }

    public void setNum1(byte num1) {
        this.num1 = num1;
    }

    public byte getPos() {
        return pos;
    }

    public void setPos(byte pos) {
        this.pos = pos;
    }

    public byte getSize() {
        return (byte) ((equipFields == null ? 0 : equipFields.size()) + (hunQiaoFields == null ? 0
                : hunQiaoFields.size()));
    }

    public void setSize(byte size) {
        this.size = size;
    }

    public List<EquipField> getEquipFields() {
        return equipFields;
    }

    public void setEquipFields(List<EquipField> equipFields, List<HunQiaoField> hunQiFields) {
        this.equipFields = equipFields;
        this.hunQiaoFields = hunQiFields;
        setSize(getSize());
    }

    public List<HunQiaoField> getHunQiaoFields() {
        return hunQiaoFields;
    }

    public void setHunQiaoFields(List<HunQiaoField> hunQiaoFields) {
        this.hunQiaoFields = hunQiaoFields;
        setSize(getSize());
    }
}
